package com.cool.ce.api.ro;

import com.alibaba.fastjson.JSONObject;
import com.cool.ce.client.CeApiClient;
import com.cool.ce.converter.CeResponseConverter;
import com.cool.common.model.request.BaseApiRequest;
import com.cool.common.model.request.FarecenterCeRequest;
import com.cool.orchestration.api.ThirdPartyApiService;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;


@Service
public class QueryInventoryListService implements ThirdPartyApiService<FarecenterCeRequest, JSONObject> {

    @Resource
    private CeApiClient ceApiClient;

    @Resource
    private CeResponseConverter ceResponseConverter;

    @Override
    public JSONObject run(FarecenterCeRequest farecenterCeRequest) {
        return ceApiClient.execute(farecenterCeRequest);
    }

}
